package com.cstor.liang.pojo.other;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;

/**
 * Created by Administrator on 2017/8/11.
 */
public class UserModifyVo {

    @Length(min = 2, max = 50, message = "name长度为2-50")
    private String nickname;

    @Length(min = 2, max = 50, message = "tel长度为2-50")
    private String telephone;

    @Length(min = 2, max = 100, message = "pwd长度为2-100")
    private String password;

    @Min(value = 1, message = "roleId>0")
    private Integer roleId;

    @Min(value = 1, message = "regionId>0")
    private Integer regionId;

    @Length(min = 2, max = 200, message = "address长度为2-200")
    private String address;

    private Integer enabled;

    private Integer isDelete;

    public UserModifyVo() {
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
